/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designPatterns.state;

/**
 *
 * @author minga
 */
public class Person implements Emotionalstate{
    Emotionalstate emotionalState ;
   
    public Person ( Emotionalstate emotionalState )
    {
     this.emotionalState = emotionalState ;
    }
    public void setEmotionalState ( Emotionalstate emotionalState ) 
    {
     this . emotionalState = emotionalState ;
    }
    @Override
    public String sayGoodbye ( ) 
    {
     return emotionalState.sayGoodbye ( ) ;
    }
    @Override
    public String sayHello ( ) 
    {
     return emotionalState.sayHello( );
    }
}
